﻿using UnityEngine;
using System.Collections;

public class PanelResultOKButton : MonoBehaviour {

	void OnClick()
	{
		if( BoardManager.Instance.boardPerson_me.isRetired )
		{
			UIManager.Instance.gameResultUI.SetActive(false);
			StageManagerWrapper.SendLeave();
		}
        else if ( !CSceneManager.isSingleGame )
        {
            UIManager.Instance.gameResultUI.SetActive(false);
            //UIManager.Instance.CreateSelectRewardUI(true);
            CSceneManager.manager.SendGetRandomBoxInfos();
        }
        else if( CSceneManager.isSingleGame )
        {
			UIManager.Instance.gameResultUI.SetActive(false);
            StageManagerWrapper.SendLeave();
        }
	}
	

}
